package com.jqbd.controller;

import com.jqbd.dto.MapData;
import com.jqbd.service.MapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: LHY
 * @Date: 2022/11/20 20:19
 */

@RestController
@RequestMapping("/map")
public class MapController {

    @Autowired
    private MapService mapService;

    @RequestMapping("/getMapData")
    public List<MapData> getMapData (){

        return mapService.getMapData();
    }
}